
export interface RoleData {
   "id"?: number,
   "createTime"?: string,
   "updateTime"?: string,
   "roleName": string,
   "remark"?: null | string
}

export interface RoleRecord {
   "records": RoleData[],
   "total": number,
   "size": number,
   "current": number,
   "orders": [],
   "optimizeCountSql": true,
   "hitCount": boolean,
   "countId": null | string,
   "maxLimit": null | number,
   "searchCount": boolean,
   "pages": number
}

export interface RoleList extends RoleRecord {
   "code": number,
   "message": string,
   "data": RoleRecord,
   "ok": boolean
}
//菜单与按钮数据的ts类型
export interface MunuData {
   id: number
   createTime: string
   updateTime: string
   pid: number
   name: string
   code: string
   toCode: string
   type: number
   status: null
   level: number
   children?: MenuList
   select: boolean
 }
 export type MenuList = MunuData[]
 
 //菜单权限与按钮权限数据的ts类型
 export interface MenuResponseData extends ResponseData {
   data: MenuList
 }
 export interface ResponseData {
   code: number
   message: string
   ok: boolean
 }